//
//  ZCTitleButton.m
//  ZCBaiSi
//
//  Created by zc on 16/7/22.
//  Copyright © 2016年 zc. All rights reserved.
//

#import "ZCTitleButton.h"

@implementation ZCTitleButton

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame: frame]) {
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        //设置按钮颜色
        //        self.selected = NO;
        [self setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
        //        self.selected = YES;
        [self setTitleColor:[UIColor redColor] forState:UIControlStateSelected];

    }
    return self;
}

- (void)setHighlighted:(BOOL)highlighted{
    
}

@end
